#!/bin/bash

POD_NAME=$(echo $POD_NAME)
POD_INDEX=$(echo $POD_NAME | awk -F '-' '{print $NF}')

echo "[entrypoint.sh]$POD_NAME $POD_INDEX"

[ -n "$POD_INDEX" ] || { echo "error."; exit -1; }

/bin/bash /scripts/init_$POD_INDEX.sh

echo "[entrypoint.sh]finished"
/bin/sleep infinity

